#ifndef  __MANDATA__
#define  __MANDATA__
#include <func.h>
void get_salt(char* salt,char* passwd);
int cd(MYSQL* mysql,char* dstdir,int* id,char* ret_info);
int ls(MYSQL *mysql,char *path,int *id,char * namelist);
int tree(MYSQL *mysql,int *id,char *namelist,int flag);
int rand_salt(char *salt);
int passwd_check(char *username,char *passwd,MYSQL *mysql ,int *user_id);
int pwd(int *id,char *buf_to_store_path,MYSQL* mysql);
int mkdir_server(char* dir_name,char* pwd,char* user_name,int* id,MYSQL* mysql);
int remove_server(char* filename,char* pwd,char* user_name,MYSQL* mysql);
int rmdir_server(char* filename,char* pwd,char* user_name,int* id,MYSQL* mysql);

int change_id(char* user_name,int *id,int pre_id,MYSQL* mysql);

#endif  
